package com.fengwk.support.pndao;

public @interface DaoGen {

	String[] insertPrefix() default { "insert" };

	String[] batchInsertPrefix() default { "batchInsert" };

	String[] findPrefix() default { "findBy" };

	String[] removePrefix() default { "deleteBy" };

	String[] queryPrefix() default { "queryBy" };

	String[] queryInPrefix() default { "queryIn" };

	String[] updatePrefix() default { "update" };

	String[] updateForPrefix() default { "updateFor" };

	String[] countPrefix() default { "countBy" };

	String[] countInPrefix() default { "countIn" };

	String[] countAllPrefix() default { "countAll" };

	String[] queryAllPrefix() default { "queryAll" };

	String separator() default "And";

	String tablePrefix() default "";

	String primaryKey() default "id";

	// String createTime() default "addTime";
	// String updateTime() default "updateTime";
	/* 禁用 */
	String createTime() default "";
	String updateTime() default "";
	/*----*/
	String tableName() default "";

	String orderBy() default "OrderBy";

	String orderByWith() default "With";

	String defaultOrder() default "ASC";
	
	Named dbNamed() default Named.UNDER_LINE;

	Named paramNamed() default Named.CAMEL;
	
	boolean autoIncrement() default false;
	
	String tableAlias() default "";
	Class<?> sqlCols() default Void.class;
	String sqlColsName() default "cols";
	String sqlColsAliasName() default "cols_alias";
	
	public enum Named {
		CAMEL, // 驼峰命名
		UNDER_LINE;// 下划线命名
	}

}
